package com.zrf.hibernate.pojo;

/**
 * Shoppingcart entity. @author MyEclipse Persistence Tools
 */

public class Shoppingcart implements java.io.Serializable {

	// Fields

	private Integer scartid;
	private Product product;
	private Buyer buyer;
	private Integer num;

	// Constructors

	/** default constructor */
	public Shoppingcart() {
	}

	/** minimal constructor */
	public Shoppingcart(Integer scartid) {
		this.scartid = scartid;
	}

	/** full constructor */
	public Shoppingcart(Integer scartid, Product product, Buyer buyer,
			Integer num) {
		this.scartid = scartid;
		this.product = product;
		this.buyer = buyer;
		this.num = num;
	}

	// Property accessors

	public Integer getScartid() {
		return this.scartid;
	}

	public void setScartid(Integer scartid) {
		this.scartid = scartid;
	}

	public Product getProduct() {
		return this.product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Buyer getBuyer() {
		return this.buyer;
	}

	public void setBuyer(Buyer buyer) {
		this.buyer = buyer;
	}

	public Integer getNum() {
		return this.num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

}